#ifndef MYTHREAD_H
#define MYTHREAD_H

#include <QThread>
#include <QLabel>
#include <QVector>

class mythread : public QThread
{
    Q_OBJECT
public:
    explicit mythread();
    //重写父类的虚函数run，实现自己的任务函数代码
    void run();
    //自定义方法接收主界面传递的标签和vector对象
    void getMsg(QLabel *lb,QVector<QString> &othervector);

private:
    QLabel *mylb;
    QVector<QString> myvector;
};

#endif // MYTHREAD_H
